<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<title></title>
		<meta name="description" content="overview & stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="static/css/bootstrap.min.css" rel="stylesheet" />
		<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="static/css/font-awesome.min.css" />
		<!-- 下拉框 -->
		<link rel="stylesheet" href="static/css/chosen.css" />
		
		<link rel="stylesheet" href="static/css/ace.min.css" />
		<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="static/css/ace-skins.min.css" />
		
		<link rel="stylesheet" href="static/css/datepicker.css" /><!-- 日期框 -->
		<style type="text/css">
		#dialog-add,#dialog-message,#dialog-comment{width:100%; height:100%; position:fixed; top:0px; z-index:99999999; display:none;}
		.commitopacity{position:absolute; width:100%; height:700px; background:#7f7f7f; filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5; top:0px; z-index:99999;}
		.commitbox{width:100%; margin:0px auto; position:absolute; top:0px; z-index:99999;}
		.commitbox_inner{width:96%; height:255px;  margin:6px auto; background:#efefef; border-radius:5px;}
		.commitbox_top{width:100%; height:250px; margin-bottom:10px; padding-top:10px; background:#FFF; border-radius:5px; box-shadow:1px 1px 3px #e8e8e8;}
		.commitbox_top textarea{width:95%; height:195px; display:block; margin:0px auto; border:0px;}
		.commitbox_cen{width:95%; height:40px; padding-top:10px;}
		.commitbox_cen div.left{float:left;background-size:15px; background-position:0px 3px; padding-left:18px; color:#f77500; font-size:16px; line-height:27px;}
		.commitbox_cen div.left img{width:30px;}
		.commitbox_cen div.right{float:right; margin-top:7px;}
		.commitbox_cen div.right span{cursor:pointer;}
		.commitbox_cen div.right span.save{border:solid 1px #c7c7c7; background:#6FB3E0; border-radius:3px; color:#FFF; padding:5px 10px;}
		.commitbox_cen div.right span.quxiao{border:solid 1px #f77400; background:#f77400; border-radius:3px; color:#FFF; padding:4px 9px;}
		</style>
		<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		<script type="text/javascript" src="static/js/bootbox.min.js"></script><!-- 确认窗口 -->
		
<script type="text/javascript">
	
	
	//对申请通过进行取消
	function cancel(seal_id){
		bootbox.confirm("取消后将不能恢复,是否继续?",function(result){
			if(result){
				top.jzts();
				var url= "<%=basePath%>sealapply/cancel.do?seal_id="+seal_id
				$.get(url,function(data){
					 setTimeout("self.location='<%=basePath%>sealapply/list.do'",100);
				});
			}
		});
	}
	
</script>
	</head>
<body>
	<form action="sealapply/${msg }.do" name="Form" id="Form" method="post">
		<input type="hidden" name="seal_id" id="seal_id" value="${pd.seal_id}"/>
		<div id="zhongxin">
			<h1>
				印章申请详情<small><i class="icon-double-angle-right"></i> </small>
			</h1>
		<table id="table_report" class="table table-striped table-bordered table-hover">
			<tr>
				<td style="width:100px;text-align: right;padding-top: 13px;">印章名称:</td>
				<td>
				<h4><span style="color: maroon;">
						<c:if test="${pd.seal_name == 1}">法人印章</c:if>
						<c:if test="${pd.seal_name == 2}">财务印章</c:if>
						<c:if test="${pd.seal_name == 3}">公司印章</c:if>
						<c:if test="${pd.seal_name == 4}">人事印章</c:if>
				</span></h4></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">申请人:</td>
				<td><h4>${pd.seal_apply_person}</h4></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">联系电话:</td>
				<td><h4>${pd.link_phone}</h4></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">部门:</td>
				<td><h4>
				<c:if test="${pd.seal_apply_department ==1}">财务部</c:if>
				<c:if test="${pd.seal_apply_department ==2}">人事部</c:if>
				<c:if test="${pd.seal_apply_department ==3}">销售部</c:if>
				<c:if test="${pd.seal_apply_department ==4}">研发部</c:if>
				</h4></td>
			</tr>							
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">印章用途:</td>
				<td><h4>${pd.seal_use}</h4></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">申请时间:</td>
				<td><h4>${pd.seal_apply_time}</h4></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">申请状态:</td>
				<td><h4>
						<c:if test="${pd.seal_status == -1}">已取消</c:if>	
						<c:if test="${pd.seal_status == 1}">审核通过</c:if>
						<c:if test="${pd.seal_status == 2}">审核中</c:if>
						<c:if test="${pd.seal_status == 3}">审核失败</c:if>
				</h4></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">审批人:</td>
				<td><h4>${pd.seal_approve_person}</h4></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">审批时间:</td>
				<td><h4>${pd.seal_use_time}</h4></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">审批备注:</td>
				<td><h4>${pd.seal_approve_remark}</h4></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">申请备注:</td>
				<td><h4>${pd.seal_remark}</h4></td>
			</tr>
			
			<tr>
				<td style="text-align: center;" colspan="10">
				<c:if test="${pd.seal_status == 1}">
				<a class="btn btn-mini btn-primary" onclick="cancel('${pd.seal_id}');">取消申请</a>
				</c:if>
				<a class="btn btn-mini btn-danger" onclick="javascript:history.back(-1);">返回</a>
				</td>
			</tr>
		</table>
		</div>
		
		<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
		
	</form>
	
	
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="static/js/bootstrap.min.js"></script>
		<script src="static/js/ace-elements.min.js"></script>
		<script src="static/js/ace.min.js"></script>
		<script type="text/javascript" src="static/js/chosen.jquery.min.js"></script><!-- 下拉框 -->
		<script type="text/javascript" src="static/js/bootstrap-datepicker.min.js"></script><!-- 日期框 -->
		<!-- 编辑框-->
		<script type="text/javascript" charset="utf-8">window.UEDITOR_HOME_URL = "<%=path%>/plugins/ueditor/";</script>
		<script type="text/javascript" charset="utf-8" src="plugins/ueditor/ueditor.config.js"></script>
		<script type="text/javascript" charset="utf-8" src="plugins/ueditor/ueditor.all.js"></script>
		<!-- 编辑框-->
		<script type="text/javascript">
		$(top.hangge());
		$(function() {
			setTimeout("ueditor()",500);
			
			//单选框
			$(".chzn-select").chosen(); 
			$(".chzn-select-deselect").chosen({allow_single_deselect:true}); 
			
			//日期框
			$('.date-picker').datepicker();
			
		});
		
		function ueditor(){
			var approve_remark = UE.getEditor('approve_remark');
			var seal_remark = UE.getEditor('seal_remark');
		}
		</script>
</body>
</html>